POV-Ray : Newsgroups : povray.unofficial.patches : #declares and memory management : Re: #declares and memory management Server Time
18 Aug 2024 16:23:00 EDT (-0400)
  Re: #declares and memory management  
From: Warp
Date: 25 May 2001 08:39:56
Message: <3b0e529c@news.povray.org>
Christoph Hormann <chr### [at] gmxde> wrote:
: So just get the source code, a good Editor, some good C programming
: reference/book and give it a try...

  I personally still think that it would be better to first get
accustomed with programming (that is, you don't need to search in a book
what was the syntax of a function or a for-loop) and get some experience
before trying to handle a huge program. Better start with small programs
(like a program which prints all prime numbers between 1 and 1000 and such),
then write a bit bigger ones before even trying to patch a huge program.
It will save a lot of time in the long run and the patch will probably be
much better and efficient. If you start coding the patch from the scratch,
with no experience at all, you'll probably make things in 50 lines which
could be made in 5 lines much more efficiently and with a lot less trouble and
work.

  Of course this is only my opinion.

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.